<?php

namespace App\Model\DesignPattern\Creational\Behavioral\Strategy;

class Sorter
{
    protected $sorter;

    public function __construct(SortStrategy $sortStrategy)
    {
        $this->sorter = $sortStrategy;
    }

    public function sort($data)
    {
        return $this->sorter->sort($data);
    }
}
